﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SauloSantos
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            answer_1.Image = SauloSantos.Properties.Resources.accepted;
            tbxAnswer1.Text = "0";
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            if ( tbxAnswer1.Text == "1")
            {
                tbxAnswer1.Text = "0";
            }
            else {
                tbxAnswer1.Text = "1";
            }
        }

        private void tbxAnswer1_TextChanged(object sender, EventArgs e)
        {
            if (tbxAnswer1.Text == "1")
            {
                answer_1.Image = SauloSantos.Properties.Resources.accepted;
            }
            else
            {
                answer_1.Image = SauloSantos.Properties.Resources.cancel;
            }
        }

        private void tabPage2_Click(object sender, EventArgs e)
        {

        }



        

    }
}
